Page({
  data: {
    list: []
  },
  onLoad() {
    this.loadList();
  },
  loadList() {
    // TODO: 替换为API
    this.setData({
      list: [
        {
          recordId: 'r1', bookTitle: 'Fun at the Beach', coverUrl: '/images/book.png',
          score: 80, recordTime: '07-04 22:47', isShareable: true
        }
      ]
    });
  },
  onRecordTap(e) {
    const record = e.currentTarget.dataset.record;
    wx.navigateTo({ url: `/pages/recording-detail/recording-detail?recordId=${record.recordId}` });
  },
  onShare(e) {
    wx.showToast({ title: '分享功能开发中', icon: 'none' });
  },
  onBack() {
    wx.navigateBack();
  }
}); 